﻿@model MobilnyDostawca.Nadzorcy

@{
    ViewBag.Title = "LogIn";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Logowanie</h2>
<p>
    Wprowadź login i hasło
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@Html.ValidationSummary(true, "Zalogowanie nie jest możliwe. Wprowadź poprawne dane")

@using (Html.BeginForm())
{
    <div>
        <fieldset>
            <legend>Nadzorca magazynu</legend>
            <div class="editor-label">
                @Html.LabelFor(m => m.Login)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Login)
                @Html.ValidationMessageFor(m => m.Login)
            </div>

            <div class="editor-label">
                @Html.Label("Hasło")
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Haslo)
                @Html.ValidationMessageFor(m => m.Haslo)
            </div>

            <p>
                <input type="submit" onclick="location.href='@Url.Action("LogIn", "Authentication")'" value="Zaloguj" title="Zaloguj"/>
                <input type="button" onclick="location.href='@Url.Action("ChangePassword", "Authentication")'" value="Zmień hasło" title="Zmień hasło"/>
            </p>
        </fieldset>
    </div>
}